<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    学生姓名:<input type="text" name="stu_name">
    <br>
    请假事由:<input type="text" name="context">
    <br>
    请假时间:<input type="date" name="createTime">
    <br>
    请假类型:<select name="tid" id="tid">
    {% for type in types  %}
        <option value="{{ type.id }}">{{ type.g_leave }}</option>
    {% endfor %}

</select>
    <input type="submit" value="添加">
</form>
</body>
</html>